\hypertarget{format__pec_8c}{}\doxysubsection{extern/libembroidery/src/formats/format\+\_\+pec.c File Reference}
\label{format__pec_8c}\index{extern/libembroidery/src/formats/format\_pec.c@{extern/libembroidery/src/formats/format\_pec.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$math.\+h$>$}\newline
{\ttfamily \#include \char`\"{}../embroidery\+\_\+internal.\+h\char`\"{}}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{format__pec_8c_ab4e327e66e701633f888a6d2cc855126}{read\+Pec\+Stitches}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, FILE $\ast$file)
\item 
void \mbox{\hyperlink{format__pec_8c_ab0c9fc958442f49bf16e03aabeea6d39}{pec\+Encode\+Jump}} (FILE $\ast$file, int x, int types)
\item 
void \mbox{\hyperlink{format__pec_8c_afa9698043df8e301d440d6c8ff896028}{pec\+Encode\+Stop}} (FILE $\ast$file, unsigned char val)
\item 
char \mbox{\hyperlink{format__pec_8c_a8c5068feff7e317eff62044069b3579f}{read\+Pec}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, const char $\ast$file\+Name, FILE $\ast$file)
\item 
void \mbox{\hyperlink{format__pec_8c_a29630bd31090c09996a3a42a8f71e34d}{pec\+Encode}} (FILE $\ast$file, \mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$p)
\item 
void \mbox{\hyperlink{format__pec_8c_acf5d4a6e72ad546b2502069adbf45c3b}{write\+Image}} (FILE $\ast$file, unsigned char image\mbox{[}$\,$\mbox{]}\mbox{[}48\mbox{]})
\item 
void \mbox{\hyperlink{format__pec_8c_a89a530bf68647cd84d29149f33d04c79}{write\+Pec\+Stitches}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, FILE $\ast$file, const char $\ast$file\+Name)
\item 
char \mbox{\hyperlink{format__pec_8c_a71c43f0a5b5fe6cc22feef360bde6415}{write\+Pec}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, const char $\ast$file\+Name, FILE $\ast$file)
\end{DoxyCompactItemize}


\doxysubsubsection{Function Documentation}
\mbox{\Hypertarget{format__pec_8c_a29630bd31090c09996a3a42a8f71e34d}\label{format__pec_8c_a29630bd31090c09996a3a42a8f71e34d}} 
\index{format\_pec.c@{format\_pec.c}!pecEncode@{pecEncode}}
\index{pecEncode@{pecEncode}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{pecEncode()}{pecEncode()}}
{\footnotesize\ttfamily void pec\+Encode (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{p }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__pec_8c_ab0c9fc958442f49bf16e03aabeea6d39}\label{format__pec_8c_ab0c9fc958442f49bf16e03aabeea6d39}} 
\index{format\_pec.c@{format\_pec.c}!pecEncodeJump@{pecEncodeJump}}
\index{pecEncodeJump@{pecEncodeJump}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{pecEncodeJump()}{pecEncodeJump()}}
{\footnotesize\ttfamily void pec\+Encode\+Jump (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{int}]{x,  }\item[{int}]{types }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__pec_8c_afa9698043df8e301d440d6c8ff896028}\label{format__pec_8c_afa9698043df8e301d440d6c8ff896028}} 
\index{format\_pec.c@{format\_pec.c}!pecEncodeStop@{pecEncodeStop}}
\index{pecEncodeStop@{pecEncodeStop}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{pecEncodeStop()}{pecEncodeStop()}}
{\footnotesize\ttfamily void pec\+Encode\+Stop (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{unsigned char}]{val }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__pec_8c_a8c5068feff7e317eff62044069b3579f}\label{format__pec_8c_a8c5068feff7e317eff62044069b3579f}} 
\index{format\_pec.c@{format\_pec.c}!readPec@{readPec}}
\index{readPec@{readPec}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{readPec()}{readPec()}}
{\footnotesize\ttfamily char read\+Pec (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{const char $\ast$}]{file\+Name,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__pec_8c_ab4e327e66e701633f888a6d2cc855126}\label{format__pec_8c_ab4e327e66e701633f888a6d2cc855126}} 
\index{format\_pec.c@{format\_pec.c}!readPecStitches@{readPecStitches}}
\index{readPecStitches@{readPecStitches}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{readPecStitches()}{readPecStitches()}}
{\footnotesize\ttfamily void read\+Pec\+Stitches (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}

\hypertarget{format__phc_8c_Brother}{}\doxyparagraph{Embroidery Format (.\+pec)}\label{format__phc_8c_Brother}
\index{pec@{pec}} \index{Brother@{Brother}}

The Brother pec format is stitch-\/only. \mbox{\Hypertarget{format__pec_8c_acf5d4a6e72ad546b2502069adbf45c3b}\label{format__pec_8c_acf5d4a6e72ad546b2502069adbf45c3b}} 
\index{format\_pec.c@{format\_pec.c}!writeImage@{writeImage}}
\index{writeImage@{writeImage}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{writeImage()}{writeImage()}}
{\footnotesize\ttfamily void write\+Image (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{unsigned char}]{image\mbox{[}$\,$\mbox{]}\mbox{[}48\mbox{]} }\end{DoxyParamCaption})}

Write a PES embedded {\itshape image} to the given {\itshape file} pointer. \mbox{\Hypertarget{format__pec_8c_a71c43f0a5b5fe6cc22feef360bde6415}\label{format__pec_8c_a71c43f0a5b5fe6cc22feef360bde6415}} 
\index{format\_pec.c@{format\_pec.c}!writePec@{writePec}}
\index{writePec@{writePec}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{writePec()}{writePec()}}
{\footnotesize\ttfamily char write\+Pec (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{const char $\ast$}]{file\+Name,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__pec_8c_a89a530bf68647cd84d29149f33d04c79}\label{format__pec_8c_a89a530bf68647cd84d29149f33d04c79}} 
\index{format\_pec.c@{format\_pec.c}!writePecStitches@{writePecStitches}}
\index{writePecStitches@{writePecStitches}!format\_pec.c@{format\_pec.c}}
\doxyparagraph{\texorpdfstring{writePecStitches()}{writePecStitches()}}
{\footnotesize\ttfamily void write\+Pec\+Stitches (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{FILE $\ast$}]{file,  }\item[{const char $\ast$}]{file\+Name }\end{DoxyParamCaption})}

